#ifndef __TASK_H
#define __TASK_H

#include "STM32Lib\\stm32f10x.h"
#include "UP_Globle.h" 
#include "UP_Exti.h"
#include "UP_ADC.h"	 
#include "car.h"
#include "senser_state.h"

#define  EDGR_VALUE			300
#define  RESTART_GRAYVALUE	120
#define	 RESTART_VALUE		1100
#define  ENEMYDISTANCE		1150

extern uint8_t RestartFlag;

uint16_t Get_GrayAverValue(void);
void IsDownTable(void);
void PatrArea(void);
void OnStage_Right(void);
void OnStage_Left(void);
void EmyCheck(void);
void ComBacToPower(void);

#endif
